package com.example.mqdemo.work.roundRobinDispatch;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/*
 *@description: 工作队列消息轮询分发接收者
 *@author: hisen
 *@Time: 2023/11/21  10:13
 */
@Component("roundRobinWorkConsumer2")
public class WorkConsumer2 {
    @RabbitListener(queues = "round-robin-dispatch_work")
    public void handleMessage(String message) {
        System.out.println("消费者2收到消息：" + message);
    }
}